package com.time.sky.controller;

import com.time.sky.entity.Dianl;
import com.time.sky.entity.Floor;
import com.time.sky.mapper.DianlMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class DianlController {
    @Autowired
    private DianlMapper dianlMapper;
    @RequestMapping("queryDianl")
    public List<Dianl> queryDianl(){
       return dianlMapper.queryDianl();
    }
    @RequestMapping("/getCountDianl")
    public int getCountDianl(Dianl dianl){
        return dianlMapper.getCountDianl(dianl);
    }
}
